package es.cea.web;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/Pagina1")
public class Pagina1 extends HttpServlet {
	private static final long serialVersionUID = 1L;

	protected void doGet(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		// variable para imprimir
		PrintWriter writer = response.getWriter();
		writer.println("<html><body>");
		writer.println("<font size=" + 20 + ">ESTAS EN LA PAGINA 1</font><br>");
		writer.println("<a href='calculadora.html'><h3>Calculadora</h3></a><br>");
		writer.println("<a href='./Home'><h3>Home</h3></a><br>");
		writer.println("</font>");
		writer.println("</body></html>");
	}

	protected void doPost(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {

	}

}
